How to modify the APM Insight PHP agent's communication port?

How to modify the APM Insight PHP agent's communication port?

The PHP agent uses ports 20021 and 20022 by default. You can change these ports by modifying the appropriate directive in the zpa.ini file (Linux) or php.ini file (Windows), as well as in the apminsight.conf file (Linux and Windows).

Default configurations:
  1. In the zpa.ini (Linux) or php.ini (Windows) file, set
zpa.status_port=20021
zpa.data_port=20022
  1. In the apminsight.conf file, set
agent.status.port=20021
agent.data.port=20022
Note: The values for zpa.status port and agent.status.port mustbe the same. Similarly, the values of zpa.data_port and agent.data.port must be the same. 

                  New to ADSelfService Plus?